//
//  QZAddressInfo.m
//  WeiWeiHaircut
//
//  Created by apple on 15/12/28.
//  Copyright © 2015年 超群. All rights reserved.
//

#import "QZAddressInfo.h"
static QZAddressInfo *_addressInfo = nil;

@interface QZAddressInfo ()
@property (nonatomic, strong) NSMutableDictionary *addressinfo;

@end
@implementation QZAddressInfo

+(instancetype)shared{
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _addressInfo = [[QZAddressInfo alloc] init];
        _addressInfo.addressinfo = [NSMutableDictionary dictionary];
    });
    return _addressInfo;

}

-(void)addressSetobjct:(NSString *)objct forkey:(NSString *)key{
    
    
    [self.addressinfo setObject:objct forKey:key];
    
}

-(NSDictionary *)showAddressInfo{
    
    NSDictionary *dic = [NSDictionary dictionaryWithDictionary:self.addressinfo];
    return dic;
    
}
+(void)clearData{
    
    [_addressInfo.addressinfo removeAllObjects];
    
}
@end
